import Vue from 'vue'

import VueRouter from 'vue-router'

import Login from '../view/login'
import Register from '../view/register'
import List from '../view/list'
import Word from '../view/word'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
      {
         path: '/login',
         component: Login, 
    },
    {
      path: '/register',
      component: Register, 
    },
    {
      path: '/list',
      component: List, 
    },
    {
      path: '/word',
      component: Word, 
   },
  ]
})

export default router 